package com.crealth.model;

import java.io.Serializable;
import java.sql.Timestamp;

import com.alibaba.fastjson.JSONObject;

public class ConsumerFollowupModel implements Serializable {	
	private static final long serialVersionUID = 845201L;	
	private int consumerID;
	private String followupIfno;
	private Timestamp followupTm;
	
	public ConsumerFollowupModel() {
		followupIfno = "";
	}
	
	public int getConsumerID() {
		return consumerID;
	}
	public void setConsumerID(int consumerID) {
		this.consumerID = consumerID;
	}
	public String getFollowupIfno() {
		return followupIfno;
	}
	public void setFollowupIfno(String followupIfno) {
		this.followupIfno = followupIfno;
	}
	public Timestamp getFollowupTm() {
		return followupTm;
	}
	public void setFollowupTm(Timestamp followupTm) {
		this.followupTm = followupTm;
	}

	public JSONObject toJSONObject() {
		JSONObject jsonObj = new JSONObject();
		jsonObj.put("info", followupIfno);
		jsonObj.put("tm", followupTm.getTime() / 1000);
		
		return jsonObj;
	}
	
}
